<?php
class MedicalViewModel extends ViewModel {
   public $viewFields = array(
     'UserOrderDetail'=>array('order_num','item_id','_type'=>'LEFT'),
     'MedicalRecords'=>array('user_id', '_on'=>'UserOrderDetail.item_id=MedicalRecords.id'),
   );
 }